home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Graphics / Gnuplot / Source / MultipleSelectionMatrix.m < prev    next >
Encoding:
Text File  |  1993-03-18  |  512 b   |  32 lines

  1.  
  2. static char RCSId[]="$Id: MultipleSelectionMatrix.m,v 1.1.1.1 1993/03/18 03:34:32 davis Exp $";
  3.  
  4.  
  5. #import "MultipleSelectionMatrix.h"
  6.  
  7. @implementation MultipleSelectionMatrix
  8.  
  9. - (BOOL)multipleCellsSelected
  10. {
  11.     selectedCount = 0;
  12.     
  13.     [self sendAction:@selector(incrementCount:) to:self forAllCells:NO];
  14.     return (selectedCount > 1);
  15. }
  16.  
  17.  
  18. - (BOOL)incrementCount:sender
  19. {
  20.     return (++selectedCount < 2);
  21. }
  22.  
  23.  
  24. // Shuts up the compiler about unused RCSId
  25. - (const char *) rcsid
  26. {
  27.     return RCSId;
  28. }
  29.  
  30.  
  31. @end
  32.